/* 
 * File:   pic18f2xk22peripherals.h
 * Author: apleilx
 *
 * Created on 2013年3月25日, 下午5:31
 */

#ifndef PIC18F2XK22PERIPHERALS_H
#define	PIC18F2XK22PERIPHERALS_H

#ifdef	__cplusplus
extern "C" {
#endif


extern unsigned int Counter_100ms;
extern unsigned int Counter_1s;
extern unsigned int Counter_2s;
extern unsigned int Counter_3s;
extern unsigned int Counter_10s;
extern unsigned int Counter_60s;


extern bit bPulse_50ms;
extern bit bPulse_100ms;
extern bit bPulse_1s;
extern bit bPulse_2s;
extern bit bPulse_3s;
extern bit bPulse_10s;
extern bit bPulse_60s;

extern unsigned char Timer0Over;
extern bit bPulseTimer0;
extern unsigned int  Timer0StartVal;
    
extern bit Timer0Init(unsigned char);
extern __inline void Timer0Run();
extern __inline void ClearPulse();

#ifdef	__cplusplus
}
#endif

#endif

